<%@ include file="/common/taglibs.jsp"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<html>
<head>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">    
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">

<title>注册</title>
<link href="${ctx}/css/style.css" rel="stylesheet" type="text/css">
<link href="${ctx}/css/media.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="${ctx}/js/jquery-1.7.2.min.js"></script>
<!--[if lte IE 6]> 
<script src="../js/DD_belatedPNG_0.0.8a.js" type="text/javascript"></script> 
<script type="text/javascript"> 
DD_belatedPNG.fix('.uploadImg img,.footWrap img');
</script> 
<![endif]-->
<!-- css3-mediaqueries.js for IE less than 9 -->
<!--[if lt IE 9]>
	<script src="../js/css3-mediaqueries.js"></script>
<![endif]-->

<script type="text/javascript">
   function changeStatus(currentObj){
      if($(currentObj).attr("checked")){
          $("#submitbtn").removeAttr("disabled");
          $("#submitbtn").removeClass("login-submit-disable");
          $("#submitbtn").addClass("login-submit-active");
      }else{
          $("#submitbtn").attr("disabled","disabled");
          $("#submitbtn").removeClass("login-submit-active");
          $("#submitbtn").addClass("login-submit-disable");
      }
   }
</script>
</head>

<body>

<!-- top 	start-->
	<div class="top">
    	<div class="logo">
    	<img src="${ctx}/images/logo.jpg"/>
        <span>会员注册</span>
        </div>
        <h2>欢迎来爱游网，登陆定制您的精彩旅程吧~</h2>
        <img src="${ctx}/images/bottom.jpg"/>
    </div>

    <form action="${ctx }/customer/register" method="post" id="customerRegister" name="customerRegister" onsubmit="return validateUser(this);">
		<div class="edit">
	    	<div class="radio">
	            <input type="radio" name="userType" value="01" checked="checked"/><span>我是游客</span>
	        	<input type="radio" name="userType" value="02"/><span>我是向导</span>
	        </div>
	       <table class="tab">
	       		<tr>
		            <td class="left">用户名：</td>
		            <td>
		               <spring:bind path="customer.userName">
						<input type="text" id="userName" name="userName" value="${status.value}" class="inputtext"/>
						<font color="red"><c:out value="${status.errorMessage}"/>${userNameMsg}</font>
					   </spring:bind>
		            </td>
	            </tr>
	            <tr>
		            <td class="left">邮箱：</td>
		            <td>
		               <spring:bind path="customer.userEmail">
						<input type="text" id="userEmail" name="userEmail" value="${status.value}" class="inputtext"/>
						<font color="red"><c:out value="${status.errorMessage}"/>${userEmailMsg}</font>
					   </spring:bind>
		            </td>
	            </tr>
	            <tr>
		            <td class="left">密码：</td>
		            <td>
		              <spring:bind path="customer.userPass">
						<input type="password" id="userPass" name="userPass" value="" class="inputtext"/>
						<font color="red"><c:out value="${status.errorMessage}"/></font>
					  </spring:bind>
		            </td>
	            </tr>
	            <tr>
	            <td class="left">确认密码：</td>
	            <td>
	                <spring:bind path="customer.confirmPass">
					   <input type="password" id="confirmPass" name="confirmPass" value="" class="inputtext"/>
					   <font color="red"><c:out value="${status.errorMessage}"/></font>
				    </spring:bind>
	            </td>
	            </tr>
	       </table>
	       <div class="check"><input type="checkbox" onchange="changeStatus(this);"/><span>我已阅读并同意《爱游网服务条款》</span></div>
	       <div class="btn">
	       	  <input type="submit" value="同意协议并注册" disabled="disabled" class="login-submit-disable" id="submitbtn"/>
	       </div>
	       <div class="big">
	          <textarea></textarea>
	       </div>
	    </div>
    </form>



<!--footer  	start-->    
    <div class="footWrap">
    	<div class="footer_icon">
    	<img src="${ctx}/images/1.png"/>
        <img src="${ctx}/images/2.png"/>
        <img src="${ctx}/images/3.png"/>
        <img src="${ctx}/images/4.png"/>
        <img src="${ctx}/images/5.png"/>
        
        </div>
        <div class="footer_text">
        	<p><span>Copyright</span><span>@</span><span>2002-2014</span><span>版权所有</span><span>苏ICP证B2-200000000</span></p>
        </div>
       
    </div>  
<!--footer		end-->

</body>
</html>
